package puzzel;

import java.awt.Color;

public class Position {

	
	public int getNumber() {
		return number;
	}

	public PuzzleColor getColor() {
		return color;
	}

	int number;
	PuzzleColor color;
	
	public Position(int number,PuzzleColor color){
		this.number = number;
		this.color = color;
	}
	
	public String toString(){
		return "(" + number + "," + color + ")";
	}
	
	public int hashCode(){
		return number*10 + color.hashCode();
		
	}
	
	public boolean equals(Position other){
		return number == other.number && color.equals(other.color);
	}
	
}
